/**
 * This file is part of Idegen, the application to create IDE project files.
 *
 * @copyright Copyright (c) 2011-2012, Walter Tamboer http://waltertamboer.nl
 * @file Idegen/IO/Directory.cpp
 */

#include "Idegen/PrecompiledHeader.hpp"
#include "Idegen/IO/Directory.hpp"

namespace Idegen
{
	Directory::Directory( const std::string& path )
		: m_Path( path )
	{
		size_t position = m_Path.rfind( '/' ) + 1;
		m_Name = m_Path.substr( position );
	}

	Directory::~Directory()
	{
	}

	std::string Directory::GetName() const
	{
		return m_Name;
	}

	std::string Directory::GetPath() const
	{
		return m_Path;
	}
}
